package com.ustc.springboottest.controller;

import com.ustc.springboottest.bean.Dog;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/dog")
public class MainController {
    @RequestMapping(value = "",method = RequestMethod.GET)
    public Dog getDog(){
        return new Dog("阿花",12);
    }
}
